package com.thb.pay.settle.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.thb.pay.db.entity.SuperEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 代理商-结算汇总表
 * </p>
 *
 * @author lucky
 * @since 2019-07-21
 */
@Data
@Accessors(chain = true)
@TableName("agent_settle_collect")
public class AgentSettleCollect extends SuperEntity<AgentSettleCollect> {

    private static final long serialVersionUID = 1L;
    /**
     * 代理商ID
     */
    private Long agentId;

    /**
     * 汇总日期
     */
    private Date collectDate;

    /**
     * 汇总类型:1-存入/减少汇总,2-临时汇总,3-遗留汇总
     */
    private Integer collectType;

    /**
     * 交易金额
     */
    private Long totalAmount;

    /**
     * 交易总笔数
     */
    private Integer totalCount;

    /**
     * 代理商利润,单位分
     */
    private Long totalAgentProfit;

    /**
     * 结算状态,0-未结算,1-已结算
     */
    private Integer settStatus;

    /**
     * 风险预存期天数
     */
    private Integer riskDay;

    /**
     * 结算类目:20-支付,21-代付,22-线下充值,23-线上充值
     */
    private String collectItem;

    /**
     * 备注
     */
    private String remark;
}
